package com.lq.ecoldchain.ui.withdraw.addcard

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/6 0006  16:34
*function by lq
*/
val addcardKodeinMoudle = Kodein.Module("Add_Card_Kodein_Module"){
    bind<AddCardViewModel>() with scoped(AndroidLifecycleScope).singleton {
        AddCardViewModel()
    }

    bind<AddCardDelegate>() with  scoped(AndroidLifecycleScope).singleton {
        AddCardDelegate(instance())
    }
}